FROM openjdk:17-jdk-slim
ENV TimeZone=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TimeZone /etc/localtime && echo $TimeZone > /etc/timezone
ADD target/springboot-demo-0.0.1-SNAPSHOT.jar demo.jar
EXPOSE 8099
ENTRYPOINT ["java","-jar","/demo.jar"]